const mutations = {
  // 修改数据的唯一正确方式，特点是同步
  olding(state) {
    // olding：目的是长大一岁
    state.age += 1
  },
  levelUp(state, payload) {
    console.log(payload);
    state.level += payload
  },
  levelUpUp(state, payload) {
    console.log(payload);
    state.level += payload.data1
  }
}
export default mutations